// var name = "frank";
// 浏览器window对象默认带有name属性

var age = 100;

foo();
function foo(num) {
  console.log(n);
  var n = 10;
  var m = 20;

  function bar() {
    console.log(age);
  }
  bar();
}

console.log(window);
